/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.hazard.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hopes.bizz.close.hazard.dto.ClosedHazardCarAuditDTO;
import com.hopes.bizz.close.hazard.dto.ClosedHazardCarDTO;
import com.hopes.bizz.close.hazard.dto.ClosedHazardCarExcelDTO;
import com.hopes.bizz.close.hazard.entity.ClosedHazardCarEntity;
import com.hopes.bizz.close.hazard.vo.ClosedHazardCarExcelVO;
import com.hopes.boss.common.service.ExcelService;

import java.util.List;

/**
 * 危险品运输车辆
 *
 * @author pig
 * @date 2023-10-24 19:40:58
 */
public interface ClosedHazardCarService extends ExcelService<ClosedHazardCarExcelDTO, ClosedHazardCarExcelVO, ClosedHazardCarEntity> {

    /**
     * 提交
     * @param id  标识
     * @return
     */
    boolean submitById(Long id);

    /**
     * 新增并提交
     * @param closedHazardCar    危险品车辆信息
     * @return                   结果
     */
    boolean saveAndSubmit(ClosedHazardCarEntity closedHazardCar);

    /**
     * 审核
     * @param closedGeneralCarAuditDTO 审核对象
     * @return
     */
    boolean auditById(ClosedHazardCarAuditDTO closedGeneralCarAuditDTO);

    /**
     * 移动端分页查询我的危险品车辆申请
     * @param page                  分页参数
     * @param closedHazardCarDTO    查询参数
     * @return                      结果集
     */
    IPage<ClosedHazardCarEntity> queryAppHazardCarSelfPage(Page page, ClosedHazardCarDTO closedHazardCarDTO);

    /**
     * 移动端分页查询 企业待审批的危险品车辆申请
     * @param page                  分页参数
     * @param auditStatusList       审核状态
     * @param closedHazardCarDTO    查询参数
     * @return                      结果集
     */
    IPage<ClosedHazardCarEntity> queryAppHazardCarAuditPage(Page page, List<Integer> auditStatusList, ClosedHazardCarDTO closedHazardCarDTO);


}
